package com.chance.cc.crawler.development.command.schedule.sohu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.sohu.realtime.SoHuNewsRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.sohu.trace.SoHuNewsCommentTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.sohu.trace.SoHuNewsTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.schedule.CommonCrawlerJobTestScheduler;

/**
 * @author lt
 * @version 1.0
 * @date 2021-03-25 17:36:35
 * @email okprog@sina.com
 */
public class SoHuNewsCrawlerScheduler extends CommonCrawlerJobTestScheduler {
    public static void main(String[] args) {
        deleteCrawlerScheduleJob(SoHuNewsRealtimeCrawlerSchedulerJob.crawlerScheduler());
        deleteCrawlerScheduleJob(SoHuNewsTraceCrawlerSchedulerJob.crawlerScheduler());
        deleteCrawlerScheduleJob(SoHuNewsCommentTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }
    public static void deleteCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }

}
